Posts by War Lock • 2,277 points
130 posts
-
0
votes2
answers285
viewsQ: Method to edit data with Entity
I am developing a file manager and have already implemented some methods like addArquivo, listarArquivo, listarVersoes, etc.. But I need to edit it, check my DAL methods: Add: internal void…
-
0
votes0
answers154
viewsQ: Validation error in Entity framework
In my method of adding ta files giving the following Exception when debugging: Validation failed for one or more entities. See 'Entityvalidationerrors' Property for more Details. Method: internal…
-
0
votes2
answers1763
viewsQ: Error updating Entity entries
I’m trying to insert some data from some files by Entity, but it keeps giving this error: Method: internal void AddArquivo(Model.Arquivo arquivo) { using (var ctx = new TESTEntities()) { var versao…
-
3
votes1
answer1091
viewsQ: Generic object reference error
System.Nullreferenceexception: Undefined object reference for an instance of an object. This error is giving in the following code snippet: Arquivo arquivo = new Arquivo(); ArquivoVersao versao =…
-
0
votes2
answers761
viewsQ: Argued tofrangeexception with Entity
I have a method that waits for a file object, what it does is add the references in the database: Look at the method: internal void AddArquivo(Model.Arquivo arquivo) { using (var ctx = new…
-
0
votes1
answer51
viewsQ: Method returning object name in Entity
I have the following method: internal ArquivoVersao GetArquivoVersao(string arquivoVersaoGuid) { using (var ctx = new TestEntities()) { var versao = (from ver in ctx.ARQUIVO_VERSAO where…
-
2
votes1
answer1784
viewsQ: Insert data into table with foreign key
Knowing that I have a table with the fields: [ARQUIVO_GUID] ,[XARQUIVO] ,[TAG] ,[EXTENSAO] ,[URL] ,[IS_STREAM] [ULT_ARQUIVO_VERSAO_GUID] FK [TIPO_DE_ARQUIVO_GUID] FK [DIRETORIO_GUID] FK The last 3…
-
0
votes0
answers85
viewsQ: Consume file sending service
I have basically a c# service that was made to receive a file, what I want is to use this service, I created an Asp.net page with a fileUpluod, and I wanted to put it to work, as I do? Class of…
-
1
votes2
answers640
viewsQ: How to return all records from a table
In my context I have a File table, and another version of the file, so I did with Entity to return a file, and only one version of the file: internal Arquivo GetArquivo(string termo) { using (var…
-
2
votes2
answers1278
viewsQ: Capture selected Dropdownlist item
I have a DropDownList with some items, and I made a click event to pick up what is selected and redirect to a page, however not working right, see: switch(ddlMenu.SelectedValue){ case "0":…
-
0
votes2
answers528
viewsQ: Button event with Asp.net
I create a boot in Asp.net, put onclick "testBotao", and tighten F7, but it does not load the event, only the pageLoader. How do I capture the event?
-
7
votes1
answer1637
viewsQ: How can I test authenticated webservice?
Hello, I have an authentication service already mounted in c# and wanted to do any test with it. It can be a webform page, which returns a positive or negative, or a class c# even if it runs per…
-
-1
votes2
answers207
viewsQ: How to create a database in SQL Server?
I installed SQL Server, and comes Magnament Studio, how do I create my bank? I tried going there, and I had authenticated by Windows but it is error. How I create my bank?
-
1
votes1
answer412
viewsQ: Create a method to get records by id
In my CRUD I want to create a method obterPorId(Cliente cli) I want to get the records by code, or by name, or other field. How would you look with Datareader? a correct way, using a method that…
-
4
votes4
answers92747
viewsA: Convert String to whole in Java
Only use the Integer.parseInt(). Example: String str = "123"; int valor; valor = Integer.parseInt(str);
-
3
votes2
answers2309
viewsQ: 'Data Access Layer' is the same as 'Data Access Object'?
I’ve always used DAO (Data Access Object) in Java Web and now I’m leaving for the platform. NET (C#), I saw that there is the DAL layer (Data Access Layer). I was confused, the DAL would be the same…
-
4
votes2
answers558
viewsQ: Break inside method that returns Boolean
I’m trying to make a loop for, who at a certain time returns true, and out of the loop. Example: public boolean autentica (Usuario usuario) { for(i=0; i<listaUsuarios.size ; i++){…
-
0
votes1
answer438
viewsQ: My listview is click-free
I don’t know why , but the items don’t click. My layout: <?xml version="1.0" encoding="UTF-8"?> <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent"…
-
0
votes1
answer2435
viewsQ: How to list directory in a listview?
I need to list a specific sdcard directory in a custom listview. Look at how I work, the list contains a boot and a title: Adapter public class AdapterListView extends BaseAdapter { private…
-
2
votes1
answer1621
viewsQ: How to put button on a Listview?
I have a model that I use in my projects, of list with image, I want instead of the image on the side of the button, just button and title. Look at my Adapter: Adapter public class AdapterListView…
-
1
votes1
answer310
viewsQ: Change file download location
I got a solution to download files on android, but it downloads with a name programmed in the code, and at the root, I wanted to download with the original name of the file, and save in the folder I…
-
-5
votes1
answer103
viewsQ: Nullpointerexception on android in project to download Pdfs
I made an application that at a certain low time Pdfs, however I can only download a PDF. I wanted to download several PDF, see the project. The part that’s making the mistake is in the for, where I…
-
0
votes1
answer128
viewsQ: Geolocation in html
In my application I have a webview, and it has the address link, I wanted to appear the doll informing the location. As I call in html?
-
0
votes2
answers3316
viewsQ: How to open a folder on android
I wanted to open a directory on android, I tried so: public void openFolder() { Intent intent = new Intent(Intent.ACTION_GET_CONTENT); Uri uri =…
-
1
votes2
answers181
viewsA: How to copy a Sqlitestudio database to the eclipse?
I solved using a class that copies the bank at the time the application is run, just leave the database file in the directory Assets, that when calling the class it takes the file and copies to the…
-
1
votes3
answers1157
viewsQ: How to download a pdf on android
In my app will have a listview with pdf titles, when clicking wanted to download to the device, a way to open offline, how could do this?
-
0
votes1
answer202
viewsQ: How to set a default page?
I downloaded a project, which when I’m going to run from this: The web server is configured not to list the contents of this directory. I’m new to this environment, what I have to set up? Note:…
-
0
votes1
answer204
viewsQ: Xml parser in Swift
I downloaded a ready project of rss Reader, it comes title description and image. However I am trying to edit the same for my xml. see the codes: // // FeedTableViewController.swift // RSSReader //…
-
1
votes1
answer142
viewsQ: How to make a Listview responsive?
I wanted the items from ListView appear with a responsive size at different screen resolution, how do I? Because I set a size of images and text, which gets big on small devices Listview items:…
-
2
votes1
answer147
viewsQ: Place gallery with text
I’m trying to put a product gallery in my app, and I wanted the image and the text below, I’m using the viewpager, however the text ta getting on the side, and the images very far away from each…
-
1
votes1
answer353
views -
3
votes1
answer693
viewsQ: How to test Swift connection
I have a very simple webview, and before loading the webview I want to check the connection, if it is unavailable create a message for the user informing.
-
0
votes1
answer190
viewsQ: Webview with some problems in Swift
I got a problem Simple code: let url = "http://apple.com" override func viewDidLoad() { super.viewDidLoad() let requestURL = NSURL(string:url) let request = NSURLRequest(URL: requestURL!)…
-
4
votes1
answer500
viewsQ: Some devices can’t find my app in the playstore
From time to time I’ve been updating the application, some devices do not find, I tried on my tablet positive 10 inches, and did not find. I have already configured the manifest to receive support…
-
0
votes1
answer173
viewsQ: Universal Image Loader error loading image
I want to upload images from the URL with the universal image: java.lang.Noclassdeffounderror: com.nostra13.universalimageloader.core.Imageloaderconfiguration$Builder I already downloaded the lib,…
-
3
votes1
answer791
viewsQ: How to call the application "call number" in a webview?
I have a part in my application that is a webview, how to make so that when clicking on the webview phone, open the call Intent?
-
0
votes2
answers564
viewsQ: Listview too slow to load XML
It’s taking too long to load a few items, it takes several seconds, and to load a lot of items, it never loads. I used the same XML reading algorithm, with a simple list and loaded very fast, but in…
-
3
votes2
answers181
viewsQ: How to copy a Sqlitestudio database to the eclipse?
I have a table created by Sqlitestudio that when copied to the folder assets in an app Eclipse doesn’t work. In case my database class will only have a list( method which is what I need) because the…
-
0
votes1
answer612
viewsQ: Load spinner inside another
I wanted to know how when selecting a spinner item, another spinner is filled with an Adapter. I tried this way: @Override public void onItemSelected(AdapterView<?> arg0, View arg1, int…
-
0
votes1
answer574
viewsQ: Eclipse erased my entire project
I have a project on Workspace, and then went on to import the project into Eclipse when it imported, it zeroed all the files, and deleted images and everything from the project, it is possible to…
-
0
votes1
answer418
viewsQ: Button with responsive image
I have several buttons that readjust depending on the size of the device, however, the images inserted in it do not automatically adjust, and end up always with a fixed size. How can I make these…
-
0
votes1
answer381
viewsQ: How to use jboss in eclipse
I installed the jbossTolls in the eclipse After I downloaded the jboss 7.1, set it up right in Servers, started it and had the jsf page rotated on it, but the 404, someone knows what it can be?…
-
2
votes1
answer1330
viewsQ: Inheritance with jpa
Hello, I have a class called Usuario that is abstract and I have the class UsuarioComum and Administrador which they inherit from Usuario, I am using JPA annotations to generate the automatic…
-
1
votes1
answer613
viewsQ: Intent opening two Activity in stack
I have a Activity that when calling another Activity usually calls the other screen, the problem I have to leave the other screen twice to return to the first. I’m calling Activity in an event of a…
-
1
votes1
answer1410
viewsQ: Convert html page to jsf
Well I downloaded a template that will be the index of my project, so it is already configured the web.xhtml, already run other jsf projects, however I am starting another project and I want to put…
-
3
votes1
answer1628
viewsQ: Spinner with states and cities?
How does a spinner with states and cities of Brazil? By clicking on the state, list the cities? What is the way to do this? An all-registered bank? Sqlite? Need a model ready for states and cities?…
-
0
votes0
answers60
viewsQ: Xmlparser too slow
In my application it reads an XML with 3 elements, and fills a listview. The problem is that it is very slow, even with little data in XML, I did a test with XML with 3 data, and even so it was…
-
14
votes1
answer2918
viewsQ: How to translate Android app?
I created the values-es folder, with the strings.xml file with items in the array string. However when I put the translation into Spanish on my cell phone, I open the application and nothing…
-
0
votes1
answer133
viewsQ: How do I add a progressbar to my app?
I have a Activity calling a method in the oncreate I created that’s called criarlista(). This method creates a ListView loading from an XML, and this process takes about 3.4 seconds because it is…
-
2
votes2
answers226
viewsQ: Bundle coming up void
I’m trying to pass parameters a value from one screen to another, but in the other comes null, see: Screen 1: Intent telaWeb = new Intent(SegmentoView.this, ViewWeb.class); Bundle bundleParametro =…