Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Anonymousâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #284320 |
Post edited: I got headache nothing else... |
— | about 3 years ago |
Edit | Post #284320 |
Post edited: |
— | about 3 years ago |
Edit | Post #284320 |
Post edited: |
— | about 3 years ago |
Edit | Post #284320 |
Post edited: |
— | about 3 years ago |
Edit | Post #284320 |
Post edited: |
— | about 3 years ago |
Edit | Post #284311 |
Post edited: |
— | about 3 years ago |
Edit | Post #284319 |
Post edited: |
— | about 3 years ago |
Comment | Post #284320 |
I am directly using SQL from Java. I don't have any idea of backend. I am sure that it's not mysql. But it's something else. What's that? I don't know.. (more) |
— | about 3 years ago |
Edit | Post #284319 |
Post edited: https://stackoverflow.com/questions/tagged/base64 |
— | about 3 years ago |
Comment | Post #284320 |
@#53177 there's two tag with same name [table-column](https://software.codidact.com/categories/38/tags/3438), [tablecolumn](https://software.codidact.com/categories/38/tags/3817). You can simply delete tablecolumn since there's no question with that tag. (more) |
— | about 3 years ago |
Edit | Post #284320 | Initial revision | — | about 3 years ago |
Question | — |
Why comma is expected for auto_increment? ```sql query = "CREATE TABLE "+TABLE+" ("+COLUMN1+" INTEGER PRIMARY KEY NOT NULL AUTOINCREMENT, "+COLUMN2+" VARCHAR(255), " + COLUMN3+" VARCHAR(255), "+COLUMN4+" TEXT, "+ COLUMN5+" VARCHAR(255), "+COLUMN6+" VARCHAR(255), "+COLUMN7+" TEXT)"; ``` error > ')',, ON or comma expected, go... (more) |
— | about 3 years ago |
Edit | Post #284319 | Initial revision | — | about 3 years ago |
Question | — |
What's the better way to store base64 in SQLite Database? What's the better way to store base64 in SQLite Database? I was thinking to put base64 as TEXT since base64 has lots of chars. ```sql CREATE TABLE name (id INTEGER PRIMARY KEY AUTOINCREMENT, image TEXT); ``` Is there any other value in SQL for base64? I don't want to use bitmap (BLOB)[^1]. ... (more) |
— | about 3 years ago |
Edit | Post #284311 | Initial revision | — | about 3 years ago |
Question | — |
Why is the switch statement not executing the correct case blocks? In the code below, the value of `order` variable should change according to `i`'s value: ```java String order; switch (i){ case 0: order = CallLog.Calls.DATE + " DESC "; contactViewAdapter = new ContactViewAdapter(getActivity(),getActivity(),new ReadContacts().CallLog(getA... (more) |
— | about 3 years ago |
Comment | Post #284255 |
>Specifically, a class can be declared to extend another class, which allows it to inherit or override methods from the parent class.
Class can forever extend any class. But method can't; static method either. Your answer was about class rather than method. That's why I had downvoted... Even in yo... (more) |
— | about 3 years ago |
Comment | Post #284260 |
Everyone isn't familiar with short form. That's why I would suggest to use full form of sentences. Here CMS wasn't understandable for me. You had used [DOM](https://duckduckgo.com/?q=DOM&ia=web) but it's available in internet. But I couldn't find [CMS](https://duckduckgo.com/?q=CMS&ia=stock)... (more) |
— | about 3 years ago |
Edit | Post #284174 |
Post edited: |
— | about 3 years ago |
Comment | Post #284256 |
> I don't see how...
Actually, it decreases I am not against your example. But we can call `numCars()` without adding `Car` before it. That moment you just have to add import static at top
```java
import static com.classes.Car.numCars();
``` (more) |
— | about 3 years ago |
Edit | Post #284249 | Initial revision | — | about 3 years ago |
Answer | — |
A: Why ArrayList is always same value in only Adapter? Each list index refers to the same `HashMap` which it just override the key's value with each iteration of your loop, losing any previously set values. So if I put the HashMap value inside loop then it works fine. So the code will look like ```java while(c.moveToNext()){ HashMap data = new HashM... (more) |
— | about 3 years ago |
Edit | Post #284248 | Initial revision | — | about 3 years ago |
Question | — |
Why ArrayList is always same value in only Adapter? This is the worst bug I have ever seen.. I was fetching CallLogs following way. ```java ArrayList> callLog= new ArrayList<>(); HashMap data = new HashMap<>(); Cursor c = activity.getContentResolver().query(CallLog.Calls.CONTENTURI, null, null, null, CallLog.Calls.DATE + " DE... (more) |
— | about 3 years ago |
Edit | Post #284247 | Initial revision | — | about 3 years ago |
Answer | — |
A: What should I use instead of managedQuery? There's obviously an alternative. But it was available earlier also. It's actually `getContentResolver().query()`. There's not much more difference. Both classes (not actually class it's something else I forgot the name), contain same code. Here's the query code. ```java @Nullable public fi... (more) |
— | about 3 years ago |
Edit | Post #284246 | Initial revision | — | about 3 years ago |
Question | — |
What should I use instead of managedQuery? `managedQuery` is recently deprecated. ManagedQuery was used for using Cursor. What should I use since managedQuery was deprecated? Without it, I can't work with Cursor. So there must be alternative of it. Sample Cursor : ```java Cursor managedCursor = managedQuery(CallLog.Calls.CONTENTURI, null... (more) |
— | about 3 years ago |
Edit | Post #284243 | Initial revision | — | about 3 years ago |
Question | — |
What are the disadvantages of using static methods in Java? I was using static method few moments ago. But I noticed that I was returning a variable using that static method. According to the article, >Static is a keyword that identifies the class-related thing. It means the given Method or variable is not instance-related but Class related. It can be acces... (more) |
— | about 3 years ago |
Edit | Post #284236 | Initial revision | — | about 3 years ago |
Question | — |
event_start always returning contact number in android Why `ContactsContract.CommonDataKinds.Event.STARTDATE` always returning contact number. The number is available in Google Contacts. img img Here what I am doing... ```java Cursor c; if (contactID=="") { c = activity.getContentResolver().query(Phone.CONTENTURI, null,... (more) |
— | about 3 years ago |
Edit | Post #284232 |
Post edited: |
— | about 3 years ago |
Edit | Post #284232 | Initial revision | — | about 3 years ago |
Question | — |
What's the alternative of "ContactsContract.Contacts.LAST_TIME_CONTACTED"? What should I use instead of `ContactsContract.Contacts.LASTTIMECONTACTED`? According to documentation, LASTTIMECONTACTED variable was deprecated. Even it was written in ContactsContract.class ```java / @deprecated / @Deprecated String LASTTIMECONTACTED = "lasttimecontacted"; ``` Since it w... (more) |
— | about 3 years ago |
Edit | Post #284217 | Initial revision | — | about 3 years ago |
Answer | — |
A: What does android:ems do? >The em is simply the font size. In an element with a 2in font, 1em thus means 2in. Expressing sizes, such as margins and paddings, in em means they are related to the font size, and if the user has a big font (e.g., on a big screen) or a small font (e.g., on a handheld device), the sizes will be in ... (more) |
— | about 3 years ago |
Edit | Post #284216 | Initial revision | — | about 3 years ago |
Question | — |
What does android:ems do? What does ems in xml do? I saw that I was using following line in EditText. But, I never thought what it does. I was trying to check what actually it does by removing the line. I couldn't see any difference in my layout. ```xml android:ems="10" ``` Then I visited attributes.xml (AKA a... (more) |
— | about 3 years ago |
Edit | Post #284205 | Initial revision | — | about 3 years ago |
Answer | — |
A: Find image for contact list in Android Java See https://developer.android.com/reference/android/provider/ContactsContract.Contacts.Photo There's PHOTOURI in ContactsContract.class. Fetch it following way. ```java String photo = c.getString(c.getColumnIndex(Phone.PHOTOURI)); ``` It's URI not URL. Don't confuse with URL. Now, you g... (more) |
— | about 3 years ago |
Edit | Post #284204 |
Post edited: |
— | about 3 years ago |
Edit | Post #284204 | Initial revision | — | about 3 years ago |
Question | — |
Find image for contact list in Android Java How to get image of contact list? I was using cursor to get contact list. Here how it looks like. ```java ArrayList> contactList = new ArrayList<>(); HashMap data; String name,phoneNumber; Cursor c = activity.getContentResolver().query(Phone.CONTENTURI,null,null,null,Co... (more) |
— | about 3 years ago |
Edit | Post #284160 |
Post edited: |
— | about 3 years ago |
Comment | Post #284160 |
@#53078 Yes! I got the same output. But, it wasn't what I expected. I had expected [this output](https://software.codidact.com/posts/284160/284161#answer-284161) which doesn't show without CSS (more) |
— | about 3 years ago |
Edit | Post #284177 |
Post edited: |
— | about 3 years ago |
Edit | Post #284174 |
Post edited: |
— | about 3 years ago |
Edit | Post #284177 | Initial revision | — | about 3 years ago |
Question | — |
What's the better way to deal with deprecated feature? It's a very old question came to my mind. Whenever I start building some applications for Android using Android Studio. In every update, lots of tools get deprecated. I know I can use deprecated "things". But, they don't work in higher version or API level. I was thinking if there was something t... (more) |
— | about 3 years ago |
- ← Previous
- 1
- 2
- 3
- Next →