Posts by Marceloawq • 971 points
82 posts
-
1
votes2
answers1520
viewsQ: Parameter in bold C#
I have the following string: string frase = string.Format("A data de hoje é: {0}", DateTime.Now.Date); Is there any way to make the parameter bold?
-
1
votes1
answer209
viewsA: Save Canvas as Image - UWP
Well, after a few days researching, I managed to assemble a method that runs already on the save button, and does what I need. private async void Salvar_Click(object sender, RoutedEventArgs e) {…
-
0
votes1
answer209
viewsQ: Save Canvas as Image - UWP
In applying UWP, I have the following canvas <Canvas Name="Banner" Width="500" Background="Black" Height="200" Margin="334,53,-711,-156"> <Image x:Name="img_Fita" HorizontalAlignment="Left"…
-
1
votes1
answer82
viewsQ: Popular Listview UWP C#
I’m using a bank in sqlite, already done and with data in my application UWP and trying to display in a listview the data in the table Marcas. What I’ve done so far is create a class Marcas: public…
-
0
votes0
answers30
viewsQ: Error when creating android project with Xamarin
I installed Xamarin in VS 2015, all normal. When I go create an Android project gives the error Value cannot be null. Parameter name: path1 To create for iphone he creates normally. What can it be?…
-
1
votes1
answer41
viewsA: Error in Gradle - design
the mistake is already saying everything. In the compileSdkVersion you’re using version 26; And she below you want to use the 25.3.1 changes the compileSdkVersion for 25 that should solve your…
androidanswered Marceloawq 971 -
1
votes2
answers161
viewsA: How to create an ID to be used in other classes
Create a class to set and take the value: public class User extends Application { private String Id; public String getId() { return Id; } public void setId(String Id) { this.Id = Id; } } And arrow…
-
1
votes2
answers73
viewsA: Non-functional PHP Mysql database
You didn’t put the action in his form. That: <form id="cadastro" name="cadastro" method="post" style=" text-align: left; margin-top:50px;"> That’s got to be it: <form id="cadastro"…
-
0
votes1
answer142
viewsQ: Update BD after insert record
I use the following code to enter a record in sqlite: public void InsereSenha(String Nome, String Senha, String Dica, String Anotacao) { String sql = "INSERT INTO Senha (Nome, Senha, Dica, Anotacao)…
-
0
votes1
answer900
viewsQ: Security in PHP BD Access
I’m setting up a website, and I’m not sure how to secure my database. I currently have a "Security" folder with the file connection.php who connects with the comic book. I give a include in this…
-
0
votes1
answer66
viewsQ: Save Bitmap with Alpha
I have the following class: public class TesteMultiImage extends ActionBarActivity { Uri URI; String ImagePath; Button button; @Override protected void onCreate(Bundle savedInstanceState) {…
-
3
votes2
answers143
viewsA: Button that click sends to location?
First, create map activity, here’s a Example. Then create a method to open the activity and associate to onClick button, something like public void getLocalizacao(View view) { Intent i = new…
androidanswered Marceloawq 971 -
1
votes0
answers575
viewsQ: Button in action bar to open navigation Drawer
Good, I’m making an application that uses the navigation Drawer. From the android 5.1 the button "hamburguer" in the bar action works, and when you click on it the navigation drawer Drawer opens.…
-
0
votes0
answers21
viewsQ: Can’t find Google Maps class
I’m trying to carry a FragmentActivity, that loads the map from Google Maps. It was working, and stopped suddenly. I want to open it through a button, but as soon as you press Activity with this…
-
0
votes1
answer263
viewsA: Show message on screen if there is no internet connection
Put that code inside the onPostExecute ConnectivityManager cm = (ConnectivityManager)getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo activeNetwork =…
-
1
votes1
answer61
viewsQ: Prepend in an Edittext using Textwatcher
How to make a prepend on Android? Currently I do some append, but I didn’t see how to make a prepend at the event onTextChanged. The reason is to put one ( before the first 2 digits of a phone, for…
-
1
votes1
answer159
viewsQ: How to send Push notification
Currently I do a check when the user opens the app. First it checks if it is connected. If it is not, it does not compare. If connected, it compares the current version with the version in the Play…
-
0
votes2
answers197
viewsQ: According to Like does not work Sqlite
Good, when doing a query: Cursor cursor = database.rawQuery("SELECT nome, imagem, descricao FROM Marcas WHERE descricao LIKE ? OR nome LIKE ?", new String[]{name}); It only returns results through…
-
0
votes1
answer61
viewsQ: Select from different tables
How to select from different tables? Type, check if there is value in one, if not, check in the other.
-
0
votes0
answers67
viewsQ: Dynamic creation of imageview
How to create imageviews on android dynamically based on a result of a database search? For example, I have a product that will always have an image. But he might have one or two extra images. How I…
-
1
votes0
answers153
viewsQ: Putextra in various acitivity
So what I want to do is this. I want to create an image through the app. To create this image, the user will choose 3 images. So to choose them, he will have to go through Activity1 and choose the…
-
0
votes2
answers3825
viewsA: Admob No ads appear
If you just created the ad on admob, it takes a while for the ad to start airing. And if you are using emulator android studio, will only appear test ad, even vc using normal ad.
-
1
votes0
answers54
viewsQ: Json returning wrong data - Android
I have an Activity that displays the data of a json coming from a url. The data is displayed, but I need to change the content of this json from time to time (the url does not change). The problem…
-
3
votes4
answers163
viewsQ: Deserialize Json and place values in views
Well, what I want to do is an Activity where a Json is consumed. The problem is that all tutorials show only how to return a Json in a listview. What I want is a structure more or less like this:…
-
2
votes1
answer163
viewsQ: Ping via android
Is there any way to show the average ping on android? I saw some tutorials but the most I could was the following: public void fExecutarPing(View view){ List<String> listaResponstaPing = new…
-
2
votes1
answer1936
viewsQ: Encryption in the sqlite
I am needing to store some data in Sqlite, but this data needs to be encrypted, and when the user needs it, decrypted. What’s the best way to do that?
-
1
votes1
answer57
viewsQ: Jsoup element without id
Well, I want to use Jsoup to take a table from a site and show it in the application. The problem is that this table has no id. How do I get this table and display in the app? Here is the…
jsoupasked Marceloawq 971 -
0
votes0
answers338
viewsQ: Query Like on Android Sqlite
I’m trying to do a query like on sqlite. Cursor cursor = database.rawQuery("SELECT nome FROM Armas WHERE nome LIKE ?", new String[]{name}); That String I pass like this: data =…
-
5
votes1
answer1315
viewsQ: Dynamically create buttons
I’m making a screen where register some users. On this screen, I have a ScrollView with a Gridlayout inside, with 2 columns. Each column has 1 button, which when clicking, opens a link, in this…
-
0
votes3
answers99
viewsQ: Custom Listview with Picasso
Good guys, I’ve done this topic~>Listview images and quantity - Android They gave me some tips and now I’m remaking him like they told me. I made a custom Adapter for listview. public class…
-
-1
votes3
answers458
viewsQ: Listview images and quantity - Android
Next, I have 2 questions that relate, so I’ll ask on 1 topic. Well, I use this query to return a list of strings with product names. public List<String> getMedico() { List<String> list =…
-
0
votes1
answer677
viewsQ: Select Tab in Tablayout(android)
Next, I’m making an app and use tablayout on several screens. Except that in all this problem happens. When I use Swipe to select the fragment on the side, the fragment changes, but the selected tab…