Tag Info

Hot answers tagged

7

No. A UUID has a particular, standardised format. From the wiki article on the subject: In its canonical form, a UUID is represented by 32 lowercase hexadecimal digits, displayed in five groups separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 alphanumeric characters and four hyphens).


4

Selecting means choosing some records from a table and leaving others out. Projecting means choosing some columns from each record and leaving others out. Therefore, your query performs selection (records with name='zeus' are chosen, but others are rejected) but not projection (those records that are chosen are returned with all of their columns). ...


3

Fragment is a modular section of an Activity that has it's own lifecycle, receives its own input events, which you can add or remove while the activity is running (sort of like a "sub activity" that you can reuse in different activities) Apart from the obvious advantage of using fragments, UI optimization across different screens, it lets you manage ...


2

The answer is Service + Thread. Don't put the socket in an Activity. The activity is for UI. It gets recreated when the user rotates the phone. You can run into problems when the user receives a phone call. Put your sockets in a Service. Your activity/activities can bind to the Service and use it's methods. Or you can use a Messenger to communicate between ...


2

Firstly your question is against the sites guidelines as it is something which will lead to discussion. Still to answer your question, you can create a sqlite db and inside it a table with all this static values to be displayed in drop downs, put the sqlite db in assets folder, on app first launch copy it to applications default db location and read it from ...


2

Not Sure how android fragments could be compared to RoR but I can tell you about what I know. You should think of Fragments as SubActivities, just like an Activity a fragment has also a life cycle: The whole point in fragments is to be able to run multiple section of an activity independently. It's like breaking down an activity and being able to update ...


2

This is from the viewpoint of a beginner and that alone (You see I started programming as a hobby and I enjoy it that way). In my opinion, there is nothing wrong with what you are doing, in fact understanding other peoples code and reusing it to your advantage is also a good trait to have. However, the next time you are about to write a new shinny snippet, ...


2

I'm not sure why you're being asked to develop this as an Android application. If this is a real production facility, you probably want to use some kind of industrial solution. I would suggest contacting someone from a machine vision company like Cognex and tell them about your application. They might have an off-the-shelf product that does exactly what ...


1

You need to write and deploy a REST service which your Android app can communicate with. There are a number of ways you can accomplish that: ASP.NET MVC, Web API, WCF, etc. The REST service connects with the SQL Server instance. The web service is responsible for what you want it to be responsible for. It can contain business logic, transactions, data ...


1

A UUID is a standardised representation of a 128-bit number. As noted by AndyBursh, the representation is 32 hexadecimal digits, split into groups and separated by dashes. Nothing else is a proper UUID, it would just be a string. The point of a UUID is that it's "universally unique". If I just pick a string that I like the look of, then there's no ...


1

From what you have given here, I would make a few addition assumptions and then propose a solution. You have a set of entities which you can uniquely identify You care about the order (in the list) when you have lists of these entities An entity can be in multiple lists, lists are NOT all disjoined Solution: Don't use generated ID in the second table. ...



Only top voted, non community-wiki answers of a minimum length are eligible